package com.isoft.demo01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("tb_game")
public class Game implements Serializable {
    @TableId(value = "gameid",type = IdType.AUTO)
    private Integer gameid;
    private String gamename;
    private BigDecimal price;
    private Integer typeid;
    private String introduce;
    private String photo;

    @TableField(exist = false)
    private String typename;

    public Game() {
        this.gameid = gameid;
        this.gamename = gamename;
        this.price = price;
        this.typeid = typeid;
        this.introduce = introduce;
        this.photo = photo;
    }


}
